package com.sdry.entity.permission;

import com.sdry.utils.PageBean;
/**
 * @author tdd
 * @version V1.0
 * @ClassName: UpmsStaffLog
 * @Description: 用户操作日志
 * @date 2018/7/27 10:50
 */
public class UpmsStaffLog extends PageBean{
    /**id*/
    private Long staffLogId;
    /**员工id*/
    private Long staffId;
    private UpmsStaff upmsStaff;

    public UpmsStaff getUpmsStaff() {
        return upmsStaff;
    }
    public void setUpmsStaff(UpmsStaff upmsStaff) {
        this.upmsStaff = upmsStaff;
    }
    /**内容*/
    private String content;
    /**操作ip地址*/
    private String ip;
    /**操作环境*/
    private String agent;
    /**操作时间*/
    private String createTime;

    private static final long serialVersionUID = 1L;

    public Long getStaffLogId() {
        return staffLogId;
    }

    public void setStaffLogId(Long staffLogId) {
        this.staffLogId = staffLogId;
    }

    public Long getStaffId() {
        return staffId;
    }

    public void setStaffId(Long staffId) {
        this.staffId = staffId;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }

    public String getAgent() {
        return agent;
    }

    public void setAgent(String agent) {
        this.agent = agent;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", staffLogId=").append(staffLogId);
        sb.append(", staffId=").append(staffId);
        sb.append(", content=").append(content);
        sb.append(", ip=").append(ip);
        sb.append(", agent=").append(agent);
        sb.append(", createTime=").append(createTime);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        UpmsStaffLog other = (UpmsStaffLog) that;
        return (this.getStaffLogId() == null ? other.getStaffLogId() == null : this.getStaffLogId().equals(other.getStaffLogId()))
            && (this.getStaffId() == null ? other.getStaffId() == null : this.getStaffId().equals(other.getStaffId()))
            && (this.getContent() == null ? other.getContent() == null : this.getContent().equals(other.getContent()))
            && (this.getIp() == null ? other.getIp() == null : this.getIp().equals(other.getIp()))
            && (this.getAgent() == null ? other.getAgent() == null : this.getAgent().equals(other.getAgent()))
            && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getStaffLogId() == null) ? 0 : getStaffLogId().hashCode());
        result = prime * result + ((getStaffId() == null) ? 0 : getStaffId().hashCode());
        result = prime * result + ((getContent() == null) ? 0 : getContent().hashCode());
        result = prime * result + ((getIp() == null) ? 0 : getIp().hashCode());
        result = prime * result + ((getAgent() == null) ? 0 : getAgent().hashCode());
        result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
        return result;
    }
}